﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;

namespace DsaPrimeGenerator.Core
{
    public sealed class GenerationResult
    {
        private readonly BigInteger _p;

        private readonly BigInteger _q;

        private readonly bool _isSuccessful;

        public bool IsSuccessful
        {
            get { return _isSuccessful; }
        }

        public BigInteger P
        {
            get { return _p; }
        }

        public BigInteger Q
        {
            get { return _q; }
        }

        public GenerationResult(BigInteger p, BigInteger q, bool isSuccessful)
        {
            _p = p;
            _q = q;
            _isSuccessful = isSuccessful;
        }
    }
}
